package service;
import java.util.TimerTask;

import domain.Auction;

import server.AuctionServer;



public class MyTimerTask extends TimerTask {

	private Auction auction;
	private AuctionServer server;
	
	public MyTimerTask(Auction auction, AuctionServer server) {
		super();
		this.auction=auction;
		this.server=server;
	}
	
	@Override
	public void run() {
		server.notifyAuctionEnded(auction);
	}

}
